Integrand size = 21, antiderivative size = 198 \[ \int \frac {x (e+f x)^n}{a+b x+c x^2} \, dx=-\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) (e+f x)^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {2 c (e+f x)}{2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f}\right )}{\left (2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f\right ) (1+n)}-\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) (e+f x)^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {2 c (e+f x)}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{\left (2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f\right ) (1+n)} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 198, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {844, 70} \[ \int \frac {x (e+f x)^n}{a+b x+c x^2} \, dx=-\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) (e+f x)^{n+1} \operatorname {Hypergeometric2F1}\left (1,n+1,n+2,\frac {2 c (e+f x)}{2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f}\right )}{(n+1) \left (2 c e-f \left (b-\sqrt {b^2-4 a c}\right )\right )}-\frac {\left (\frac {b}{\sqrt {b^2-4 a c}}+1\right ) (e+f x)^{n+1} \operatorname {Hypergeometric2F1}\left (1,n+1,n+2,\frac {2 c (e+f x)}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{(n+1) \left (2 c e-f \left (\sqrt {b^2-4 a c}+b\right )\right )} \]
[In]
[Out]
Rule 70
Rule 844
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) (e+f x)^n}{b-\sqrt {b^2-4 a c}+2 c x}+\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) (e+f x)^n}{b+\sqrt {b^2-4 a c}+2 c x}\right ) \, dx \\ & = \left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \int \frac {(e+f x)^n}{b-\sqrt {b^2-4 a c}+2 c x} \, dx+\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \int \frac {(e+f x)^n}{b+\sqrt {b^2-4 a c}+2 c x} \, dx \\ & = -\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) (e+f x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {2 c (e+f x)}{2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f}\right )}{\left (2 c e-\left (b-\sqrt {b^2-4 a c}\right ) f\right ) (1+n)}-\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) (e+f x)^{1+n} \, _2F_1\left (1,1+n;2+n;\frac {2 c (e+f x)}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{\left (2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f\right ) (1+n)} \\ \end{align*}
Time = 0.21 (sec) , antiderivative size = 183, normalized size of antiderivative = 0.92 \[ \int \frac {x (e+f x)^n}{a+b x+c x^2} \, dx=\frac {(e+f x)^{1+n} \left (-\frac {\left (1-\frac {b}{\sqrt {b^2-4 a c}}\right ) \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {2 c (e+f x)}{2 c e+\left (-b+\sqrt {b^2-4 a c}\right ) f}\right )}{2 c e+\left (-b+\sqrt {b^2-4 a c}\right ) f}-\frac {\left (1+\frac {b}{\sqrt {b^2-4 a c}}\right ) \operatorname {Hypergeometric2F1}\left (1,1+n,2+n,\frac {2 c (e+f x)}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{2 c e-\left (b+\sqrt {b^2-4 a c}\right ) f}\right )}{1+n} \]
[In]
[Out]
\[\int \frac {x \left (f x +e \right )^{n}}{c \,x^{2}+b x +a}d x\]
[In]
[Out]
\[ \int \frac {x (e+f x)^n}{a+b x+c x^2} \, dx=\int { \frac {{\left (f x + e\right )}^{n} x}{c x^{2} + b x + a} \,d x } \]
[In]
[Out]
\[ \int \frac {x (e+f x)^n}{a+b x+c x^2} \, dx=\int \frac {x \left (e + f x\right )^{n}}{a + b x + c x^{2}}\, dx \]
[In]
[Out]
\[ \int \frac {x (e+f x)^n}{a+b x+c x^2} \, dx=\int { \frac {{\left (f x + e\right )}^{n} x}{c x^{2} + b x + a} \,d x } \]
[In]
[Out]
\[ \int \frac {x (e+f x)^n}{a+b x+c x^2} \, dx=\int { \frac {{\left (f x + e\right )}^{n} x}{c x^{2} + b x + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {x (e+f x)^n}{a+b x+c x^2} \, dx=\int \frac {x\,{\left (e+f\,x\right )}^n}{c\,x^2+b\,x+a} \,d x \]
[In]
[Out]